package com.sptpc.stu.service;

import com.sptpc.stu.common.response.JSONResponse;
import com.sptpc.stu.controller.request.AddNewUserRequest;
import com.sptpc.stu.controller.request.NewAccountRequest;
import com.sptpc.stu.controller.request.SearchaAccRequest;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpSession;

@Service
public interface MailService {


    JSONResponse sendCodeMail (String email, HttpSession session);

    JSONResponse registeredOrUpdate(AddNewUserRequest newAccountRequest);

    JSONResponse loginIn(SearchaAccRequest newAccountRequest);

    JSONResponse checkCode(AddNewUserRequest newUserRequest);


}
